package com.cinema.Bean;

public class Ticket implements java.io.Serializable{
	private int ticketId; // 出票id
	private String userId; // 用户id
	private String sessionId; // 场次id
	private int seatRow; // 座位行号
	private int seatCol; // 座位列号
	private String hallId; //场厅id
	private String movieId; // 电影id
	public Ticket(String userId, String sessionId, int seatRow, int seatCol, String hallId,
			String movieId) {
		super();
		this.userId = userId;
		this.sessionId = sessionId;
		this.seatRow = seatRow;
		this.seatCol = seatCol;
		this.hallId = hallId;
		this.movieId = movieId;
	}
	public Ticket() {
		super();
		// TODO Auto-generated constructor stub
	}
	public int getTicketId() {
		return ticketId;
	}
	public void setTicketId(int ticketId) {
		this.ticketId = ticketId;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getSessionId() {
		return sessionId;
	}
	public void setSessionId(String sessionId) {
		this.sessionId = sessionId;
	}
	public int getSeatRow() {
		return seatRow;
	}
	public void setSeatRow(int seatRow) {
		this.seatRow = seatRow;
	}
	public int getSeatCol() {
		return seatCol;
	}
	public void setSeatCol(int seatCol) {
		this.seatCol = seatCol;
	}
	public String getHallId() {
		return hallId;
	}
	public void setHallId(String hallId) {
		this.hallId = hallId;
	}
	public String getMovieId() {
		return movieId;
	}
	public void setMovieId(String movieId) {
		this.movieId = movieId;
	}
	@Override
	public String toString() {
		return "Ticket [ticketId=" + ticketId + ", userId=" + userId + ", sessionId=" + sessionId + ", seatRow="
				+ seatRow + ", seatCol=" + seatCol + ", hallId=" + hallId + ", movieId=" + movieId + "]";
	}
}
